<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>百分比布局</title>
    <style>
        .ictk {
            padding: 100px;
            width: 1000px;
            height: 500px;
            position: relative;
            border: 1px solid #ff0;
        }

        .contalner {
            width: 800px;
            padding: 100px;
            height: 400px;
            margin: 0 auto;
            border: 10px solid green;

        }

        .box {
            width: 10%;
            height: 10%;
            background: yellow;
            padding: 10%;
            margin: 10%;

        }
    </style>
</head>

<body>
    <div class="ictk">
        <div class="contalner">
            <div class="box"></div>
        </div>
    </div>


</body>

</html>